Computes the number of overlapped signals using a nominal 50% overlap.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | n |
The total length of the signal being overlapped. |
||
| integer(kind=int32), | intent(in) | :: | winsize |
The window size. |
The number of segments.
Computes the length of the positive half of a discrete Fourier transform for a specific signal length.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | n |
The signal length (length of the signal put forth to the Fourier transform). |
The length of the positive half of the discrete Fourier transform.
Computes the cumulative sum of an array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x(:) |
The N-element array on which to operate. |
An N-element array containing the cumulative sum of each element in x (e.g. cumulative_sum(x) = [x(1), x(1) + x(2), ...]).
Computes the difference between each element in an array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x(:) |
The N-element array on which to operate. |
The N-1 element array containing the difference between each element in x.
Computes the bin width for a discrete frequency spectrum based upon the data sample rate.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | fs |
The rate at which the signal was sampled. The units of this value will be the units of the output. |
||
| integer(kind=int32), | intent(in) | :: | n |
The signal length (length of the signal put forth to the Fourier transform). |
The frequency bin width.
Tests to see if a value is an integer power of two.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | n |
The value to test. |
Returns true if n is a power of two; else, false.
Provides the next higher integer power of two.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | n |
The value to test. |
The next power of two higher than n. If n is already a power of two, its value is simply returned. For instance, if n is set to 128, then a value of 7 is returned ( ).
Removes the mean offset from the specified data set.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in), | dimension(:) | :: | x |
The array on which to operate. |
The data set with its mean removed.
Unpacks a real-valued transform into its complex-valued format.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x(:) |
The complex-valued signal stored in a real-valued array. This array is assumed to be of length N. |
||
| real(kind=real64), | intent(in), | optional | :: | fac |
An optional scaling input. The default is 1 such that no scaling is performed. |
The unpacked complex-valued form of the input array.
Extracts a segment from a signal allowing for a nominally 50% overlap.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x(:) |
An N-element array containing the entire signal. |
||
| integer(kind=int32), | intent(in) | :: | seg |
The one-based index of the segment to extract. |
||
| integer(kind=int32), | intent(in) | :: | winsize |
The size of the window (segment). If this value is less than N, the end of the segment will be padded with zeros. |
||
| real(kind=real64), | intent(out) | :: | buffer(:) |
A winsize array where the segment will be written. |
Shifts phase angle arrays to deal with jumps greater than or equal to tol by adding multiples of until the jump is less than tol.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(inout) | :: | x(:) |
On input, the phase array. On output, the unwrapped phase array. |
||
| real(kind=real64), | intent(in), | optional | :: | tol |
The tolerance value. |